import App from './App'

// #ifndef VUE3
import Vue from 'vue'
//tim相关
import Mixin from './common/mixins';
Vue.mixin(Mixin);
import {
	filters
} from './common/filters.js'
// 定义全局自定义过滤器
Object.keys(filters).forEach(key => {
	Vue.filter(key, filters[key])
})
//引入全局方法
import {
	globalfun
} from './common/fun.js'
Object.keys(globalfun).forEach(key =>
	Vue.prototype['$' + key] = globalfun[key]
)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif